﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.SpecialistIndexViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Sérfræðingaviðmót
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="leftside">
        <h2>Aðgerðir sérfræðinga</h2>
        <ul>
            <li><%: Html.ActionLink("Sérfræðingalisti", "Specialists") %></li>
            <li><%: Html.ActionLink("Breyta upplýsingum um mig", "EditSpecialist", new { id = Model.Specialist.UserID })%></li>
        </ul>
    </div>


    <div id = "content">
        <h2>Velkomin <%: Model.Specialist.Name %></h2>

        <h3>Eftirfarandi spurningar bíða svars</h3>
        <p>Smelltu á titil spurningar til skoða nánar og/eða svara</p>
        <ul>
            <% foreach (var a in Model.Questions) { %>
                <li><%: Html.ActionLink(a.Title, "AnswerQuestion", "Question", new { id = a.ID }, null)%></li>
            <% } %>
        </ul>
    </div>

</asp:Content>
